<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>试卷预览</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    {load href="/static/css/bootstrap.min.css" /}
    {load href="/static/css/mycss.css" /}
    {load href="/static/css/dfjs_public.css" /}

    {load href="/static/js/jquery.js" /}
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    {load href="/static/js/bootstrap.min.js" /}

    <script>
    </script>

</head>
<body>
<div class="container" >
    <div class="row bb pb5">
        <h3 class="fl">{$paper.title}</h3>
        <button class="btn btn-warning pull-right pw25 mt15">试卷预览中</button>
    </div>
    <div class="row" id="toolbar">
        <p class="ph15">共{$paper['singlenum']+$paper['mulnum']+$paper['fillnum']+$paper['shortnum']+$paper['judgenum']+$paper['idenum']}题，总分{$paper.allscore}分，请在{$paper.timelimit}分钟内做完</p>
        <ul class="nav nav-pills" id="nav_top">
            <li class="active"><a href="#xuanze">选择题</a></li>
            <li><a href="#tiankon">填空题</a></li>
            <li><a href="#panduan">判断题</a></li>
            <li><a href="#jianda">简答题</a></li>
        </ul>
    </div>

    <div class="row" data-spy="scroll" data-target="#listbar" data-offset="0">

        <div class="col-xs-9 pr15" data-spy="scroll" data-target="#toolbar" data-offset="0" style="height:750px;overflow:auto;">

            <div class="row mr0" id="xuanze">
                <div class="panel panel-default">
                    <div class="panel-heading"><strong>一、选择题</strong></div>
                    <div class="panel-body">
                        {foreach name="single" item="cdata" key="k"}
                        {if condition="$k == 'single'"}
                        <div>1.1 单选题</div>
                        {foreach name="cdata" item="c" key="kk"}
                        <div class="row">
                            <div class="col-xs-1">
                                <p class="text-primary fz18 fr">{$kk+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$c.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$c.title}
                                <hr class="dash">
                                <br />
                                <p>A.&nbsp;&nbsp;{$c.optionA}</p>
                                <p>B.&nbsp;&nbsp;{$c.optionB}</p>
                                <p>C.&nbsp;&nbsp;{$c.optionC}</p>
                                <p>D.&nbsp;&nbsp;{$c.optionD}</p>
                                <hr class="dash">
                                <p>
                                    <label class="radio-inline">
                                        <input type="radio" name="answers{$kk}" value="1" {if condition="strpos($c['answer'],'1') !== false"} checked="checked" {/if}> A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="answers{$kk}" value="2" {if condition="strpos($c['answer'],'2') !== false"} checked="checked" {/if}> B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="answers{$kk}" value="3" {if condition="strpos($c['answer'],'3') !== false"} checked="checked" {/if}> C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="answers{$kk}" value="4" {if condition="strpos($c['answer'],'4') !== false"} checked="checked" {/if}> D
                                    </label>
                                <p/>

                                <p></p>
                                <p class="ph10">正确答案：<span class="co-green">
                                    {if condition="strpos($c['answer'],'1') !== false"} A {/if}
                                    {if condition="strpos($c['answer'],'2') !== false"} B {/if}
                                    {if condition="strpos($c['answer'],'3') !== false"} C {/if}
                                    {if condition="strpos($c['answer'],'4') !== false"} D {/if}
                                </span></p>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$c.analysis|strip_tags}">
                            </div>
                        </div>
                        <br />
                        <br />
                        <hr />
                        {/foreach}
                        {/if}
                        {if condition="$k == 'mul'"}
                        <div>1.2 多选题</div>
                        {foreach name="cdata" item="d" key="kk"}
                        <div class="row">
                            <div class="col-xs-1">
                                <p class="text-primary fz18 fr">{$kk+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$d.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$d.title}
                                <hr class="dash">
                                <br />
                                <p>A.&nbsp;&nbsp;{$d.optionA}</p>
                                <p>B.&nbsp;&nbsp;{$d.optionB}</p>
                                <p>C.&nbsp;&nbsp;{$d.optionC}</p>
                                <p>D.&nbsp;&nbsp;{$d.optionD}</p>
                                <hr class="dash">
                                <p>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answerm{$kk}" value="1" {if condition="strpos($d['answer'],'1') !== false"} checked {/if}> A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answerm{$kk}" value="2" {if condition="strpos($d['answer'],'2') !== false"} checked {/if}> B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answerm{$kk}" value="3" {if condition="strpos($d['answer'],'3') !== false"} checked {/if}> C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answerm{$kk}" value="4" {if condition="strpos($d['answer'],'4') !== false"} checked {/if}> D
                                    </label>
                                <p/>

                                <p></p>
                                <p class="ph10">正确答案：<span class="co-green">
                                    {if condition="strpos($d['answer'],'1') !== false"} A {/if}
                                    {if condition="strpos($d['answer'],'2') !== false"} B {/if}
                                    {if condition="strpos($d['answer'],'3') !== false"} C {/if}
                                    {if condition="strpos($d['answer'],'4') !== false"} D {/if}
                                </span></p>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$d.analysis|strip_tags}">
                            </div>
                        </div>
                        <br />
                        <br />
                        <hr />
                        {/foreach}
                        {/if}
                        {if condition="$k == 'ide'"}
                        <div>1.3 不定项选择题</div>
                        {foreach name="cdata" item="d" key="kk"}
                        <div class="row">
                            <div class="col-xs-1">
                                <p class="text-primary fz18 fr">{$kk+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$d.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$d.title}
                                <hr class="dash">
                                <br />
                                <p>A.&nbsp;&nbsp;{$d.optionA}</p>
                                <p>B.&nbsp;&nbsp;{$d.optionB}</p>
                                <p>C.&nbsp;&nbsp;{$d.optionC}</p>
                                <p>D.&nbsp;&nbsp;{$d.optionD}</p>
                                <hr class="dash">
                                <p>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answeri{$kk}" value="1" {if condition="strpos($d['answer'],'1') !== false"} checked {/if}> A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answeri{$kk}" value="2" {if condition="strpos($d['answer'],'2') !== false"} checked {/if}> B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answeri{$kk}" value="3" {if condition="strpos($d['answer'],'3') !== false"} checked {/if}> C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="checkbox" name="answeri{$kk}" value="4" {if condition="strpos($d['answer'],'4') !== false"} checked {/if}> D
                                    </label>
                                <p/>

                                <p></p>
                                <p class="ph10">正确答案：<span class="co-green">
                                    {if condition="strpos($d['answer'],'1') !== false"} A {/if}
                                    {if condition="strpos($d['answer'],'2') !== false"} B {/if}
                                    {if condition="strpos($d['answer'],'3') !== false"} C {/if}
                                    {if condition="strpos($d['answer'],'4') !== false"} D {/if}
                                </span></p>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$d.analysis|strip_tags}">
                            </div>
                        </div>
                        <br />
                        <br />
                        <hr />
                        {/foreach}
                        {/if}
                        {/foreach}
                    </div>
                </div>


                <div class="panel panel-default" >
                    <div id="tiankon" class="panel-heading"><strong>二、填空题</strong></div>
                    <div class="panel-body">
                        {foreach name='fill' item='cdata' key='k'}
                        <div class="row">
                            <div class="col-xs-1">
                                <p class="text-primary fz18 fr">{$k+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$cdata.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$cdata.title}
                                <hr class="dash">
                                <br />
                                <p>正确答案：<span class="co-green">{$cdata['answer']}</span></p>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$cdata.analysis|strip_tags}">
                            </div>
                            <br />
                            <br />
                            <hr>
                        </div>

                        <br />
                        <br />
                        <hr />
                        {/foreach}
                    </div>
                </div>


                <div class="panel panel-default">
                    <div id="panduan" class="panel-heading"><strong>三、判断题</strong></div>
                    <div class="panel-body">
                        {foreach name='judge' item='cdata' key='k'}
                        <div class="row">
                            <div id="A55" class="col-xs-1">
                                <p class="text-primary fz18 fr">{$k+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$cdata.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$cdata.title}
                                <hr class="dash">
                                <p>
                                    <label class="radio-inline">
                                        <input type="radio" name="answer{$k}" value="1" {if condition="$cdata['answer'] == '1'"} checked {/if}> 正确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="answer{$k}" value="0" {if condition="$cdata['answer'] == '0'"} checked {/if}> 错误&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </label>
                                <p/>

                                <p></p>
                                <p class="ph10">正确答案：<span class="co-green">
                                    {switch name="$cdata['answer']" }
                                        {case value="1"}正确{/case}
                                        {default /}错误
                                    {/switch}
                                </span></p>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$cdata.analysis|strip_tags}">
                            </div>
                            <br />
                            <br />
                            <hr>
                        </div>

                        <br />
                        <br />
                        <hr />
                        {/foreach}
                    </div>
                </div>
                <div class="panel panel-default">
                    <div id="jianda" class="panel-heading"><strong>四、简答题</strong></div>
                    <div class="panel-body">
                        {foreach name = "short" item="cdata" key="k" }
                        <div class="row">
                            <div id="A55" class="col-xs-1">
                                <p class="text-primary fz18 fr">{$k+1}</p>
                                <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$cdata.score}分" disabled />
                            </div>

                            <div class="col-xs-11">
                                {$cdata.title}
                                <hr class="dash">
                                <p class="ph10">正确答案：</p>
                                <div class="pl30">
                                    {$cdata.answer}
                                </div>
                                <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$cdata.analysis|strip_tags}">
                            </div>
                            <br />
                            <br />
                        </div>

                        <br />
                        <br />
                        <hr />
                        {/foreach}
                    </div>
                </div>



            </div>

        </div>



        <div class="col-xs-3 pl15">
            <div class="row">
                <div class="panel panel-default">
                    <div class="panel-heading"><strong></strong></div>
                    <div class="panel-body">
                        <div>一、选择题</div>
                        {foreach name="single" item='s' key='k'}
                        {if condition="$k == 'single'"}
                        <dl>
                            <dt>1.1、单选题</dt>
                            {foreach name="s" item='ss' key='kk'}
                            <dd class="btn btn-default m5">{$kk+1}</dd>
                            {/foreach}
                        </dl>
                        {/if}
                        {if condition="$k == 'mul'"}
                        <dl>
                            <dt>1.2、多选题</dt>
                            {foreach name="s" item='ss' key='kk'}
                            <dd class="btn btn-default m5">{$kk+1}</dd>
                            {/foreach}

                        </dl>
                        {/if}
                        {if condition="$k == 'ide'"}
                        <dl>
                            <dt>1.3、不定项选择题</dt>
                            {foreach name="s" item='ss' key='kk'}
                            <dd class="btn btn-default m5">{$kk+1}</dd>
                            {/foreach}

                        </dl>
                        {/if}
                        {/foreach}
                        <dl>
                            <dt>二、填空题</dt>
                            {foreach name="fill" item="cdata" key="k"}
                            <dd class="btn btn-default m5">{$k+1}</dd>
                            {/foreach}
                        </dl>
                        <dl>
                            <dt>三、判断题</dt>
                            {foreach name="judge" item="cdata" key="k"}
                            <dd class="btn btn-default m5">{$k+1}</dd>
                            {/foreach}
                        </dl>
                        <dl>
                            <dt>四、简答题</dt>
                            {foreach name="short" item="cdata" key="k"}
                            <dd class="btn btn-default m5">{$k+1}</dd>
                            {/foreach}
                        </dl>
                    </div>
                    <div class="panel-footer">
                        <input type="submit" class="btn btn-success form-control" value="我要交卷">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>